package com.alumni_circle.service.home.impl;

import com.alumni_circle.core.service.Impl.BaseServiceImpl;
import com.alumni_circle.entity.home.ClubActivity;
import com.alumni_circle.entity.home.VO.ClubActivityViewVO;
import com.alumni_circle.mapper.home.ClubActivityMapper;
import com.alumni_circle.service.home.IClubActivityService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author 龙小虬
 * @since 2020-07-06 22:45
 */
@Service
public class ClubActivityServiceImpl extends BaseServiceImpl<ClubActivityMapper, ClubActivity> implements IClubActivityService {

    @Resource
    private ClubActivityMapper clubActivityMapper;

    @Override
    public List<ClubActivityViewVO> selectListClubActivity() {
        return clubActivityMapper.selectListClubActivity();
    }

    @Override
    public List<ClubActivityViewVO> selectMyListClubActivity(String id) {
        return clubActivityMapper.selectMyListClubActivity(id);
    }

    @Override
    public List<ClubActivityViewVO> searchClubActivity(String club,String search) {
        return clubActivityMapper.searchClubActivity(club,search);
    }

    @Override
    public List<ClubActivityViewVO> searchMyListClubActivity(String id, String search) {
        return clubActivityMapper.searchMyListClubActivity(id,search);
    }
}
